Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An optimization to the function of findGlobalPool #1442

Open
wants to merge 2 commits into
base: clang_tot_upgrade
Choose a base branch
from

Conversation

zhaozhangjian
Copy link

@zhaozhangjian zhaozhangjian commented Apr 8, 2020

In findGlobalPool, return HSA_STATUS_INFO_BREAK instead of HSA_STATUS_SUCCESS when a fine grained global pool is found, so as to avoid useless iterations when called in the constructor of UnpinnedCopyEngine. Also add an ErrorCheck after this call.

… avoid useless iterations. Also add an ErrorCheck in the constructor of UnpinnedCopyEngine accordingly.
@zhaozhangjian
Copy link
Author

Any one to review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant